//通过vue-router 插件实习模板配置

import { createRouter, createWebHashHistory } from 'vue-router'
import { constantRoute } from '@/router/routes'
//创建路由器
const router = createRouter({
    //默认hsah
    history: createWebHashHistory(),
    routes: constantRoute,
    //滚动欣慰
    scrollBehavior() {
        return {
            left: 0,
            top: 0,
        }
    },
})

export default router
